package EIGHT;
import java.awt.*;
import javax.swing.*;
public class BorderLayoutDemo {
	private JFrame frame;
	private JButton be, bw, bn, bs, bc;
	public static void main(String args[]) {
		BorderLayoutDemo that = new BorderLayoutDemo ();
		that.go();
	}
	public void go() {
		frame = new JFrame("BorderLayoutDemo");
		be = new JButton("East");
		bw = new JButton("West");
		bn = new JButton("North");
		bs = new JButton("South");
		bc = new JButton("Center");
		
		frame.getContentPane().add(be,BorderLayout.EAST);
		frame.getContentPane().add(bs,BorderLayout.SOUTH);
		frame.getContentPane().add(bw,BorderLayout.WEST);
		frame.getContentPane().add(bn,BorderLayout.NORTH);
		frame.getContentPane().add(bc,BorderLayout.CENTER);
		
		frame.setSize(350,200);
		frame.setVisible(true);
	}
}
